<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="${currentPage }" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 
	<input type="hidden" name="orderField" value="${param.orderField}" /> 
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);"	action="express_list.action" method="post">
		<div class="searchBar nowrap">
			<p>
				<label>快递编号:</label>
				<input type="text" name="expressCode" value="${expressCode}" />
			</p>
			
			<div class="subBar">
				<ul>
					<li>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
						</li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="express_addUi.action" target="navTab" rel="express_add" title="新增快递登记信息"><span>新增</span></a></li>
			<li><a class="edit" href="express_editUi.action?erid={express_id}" rel="express_edit"  target="navTab" warn="请选择一条信息" title="修改快递登记信息"><span>修改</span></a></li>
			<li><a class="look" href="express_show.action?erid={express_id}" rel="express_show"  target="navTab" warn="请选择一条信息" title="查看快递登记信息"><span>查看</span></a></li>
		</ul>
	
	</div>
	
	<c:if test="${empty errorMsg }">
	<table class="table" width="100%" layoutH="118">
		<thead>
			<tr>
				<th width="5%" align="center">序号</th>
				<th width="15%" >快递编号</th>
				<th width="15%" >快递公司</th>
				<th width="15%" >收件人</th>
				<th width="15%" >收件人电话</th>
				<th width="15%" >创建时间</th>
				<!-- <th width="15%" >发送状态</th> -->
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${recordList}" var="express" varStatus="status">
			<tr target="express_id" rel="${express.erid }"> <!-- onclick="insideUser_doSelect(this)" -->
				<td>${(status.index+1) + (currentPage-1) * numPerPage}</td>
				<td>${express.expressCode }</td>
				<td>
					<c:forEach var="item" items="${expressMap}">
						<c:if test="${express.expressName==item.key }">${item.value }</c:if>
					</c:forEach>
				</td>
				<td>${express.receiveName }</td>
				<td>${express.receivePhone }</td>
				<td>
					<fmt:parseDate value="${express.createTime}" var="erCreateTime" pattern="yyyyMMddHHmmss"/>  
					<fmt:formatDate value="${erCreateTime}" pattern="yyyy-MM-dd HH:mm:ss" />
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<%@ include file="/WEB-INF/jsp/public/panelBar.jsp"%>	
	</c:if>
</div>
